package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 小程序用户表
 * </p>
 *
 * @author yoominic
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String openId;

    private String unionId;

    /**
     * 昵称
     */
    private String name;

    /**
     * 头像
     */
    private String faceUrl;

    /**
     * 电话
     */
    private String mobile;

    /**
     * 实名名称
     */
    private String realName;

    /**
     * 实名身份证
     */
    private String idCard;

    /**
     * 1正常/0禁止登录
     */
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String identityType;

    /**
     * 最后一次登陆时间
     */
    private LocalDateTime lastLoginTime;

    /**
     * 访问ip
     */
    private String loginIp;

    @TableField(exist = false)
    private Boolean haveFwJoin;

    @TableField(exist = false)
    private List<Map<String, Object>> currentTenantList;

    @TableField(exist = false)
    private List<Map<String, Object>> fwInfoList;

    @TableField(exist = false)
    private Map<String, Object> paymentOrderSumInfo;


}
